﻿using MySqlConnector;
using System.Data;
using NiuX.Common.Tests.Dapper.Visitors;
using NiuX.Dapper.Abstractions;
using NiuX.Dapper.Quotes;
using NiuX.Dapper.Repositories;

namespace NiuX.Dapper.MySql;

public class MySqlDataProviderFactory : IDataProviderFactory
{
    public IDbConnection GetConnection(string connectionString) => new MySqlConnection(connectionString);


    public ISqlQuote GetSqlQuote() => MySqlQuote.Instance;


    public DatabaseType DatabaseType => DatabaseType.MySql;
}